package edu.arizona.sista.learn.activity.model;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

import edu.arizona.sista.learn.activity.model.args.PredArg;


public class Conjunction extends RelationJunction {

	public Conjunction(Conjunction old){
		this(old.list);
	}
	
	public Conjunction(List<Relation> list){
		super(list);
	}
	
	public Conjunction(Relation[] array){
		this(Arrays.asList(array));
	}
	
	public Conjunction recastCopy(Map<PredArg,PredArg> varSubs) {
		List<Relation> newList = new ArrayList<Relation>();
		for( Relation relation : this.list )
			newList.add( relation.recastCopy(varSubs) );
		return new Conjunction(newList);
	}
	
}
